package com.ruoyi.baseMain.service;

import com.ruoyi.baseMain.domain.BaseSupplierPolicy;
import com.ruoyi.baseMain.domain.vo.BaseSupplierPolicyVo;
import com.ruoyi.baseMain.domain.bo.BaseSupplierPolicyBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 端口政策Service接口
 *
 * @author linziheng
 * @date 2024-01-11
 */
public interface IBaseSupplierPolicyService {

    /**
     * 查询端口政策
     */
    BaseSupplierPolicyVo queryById(Long id);

    /**
     * 查询端口政策列表
     */
    TableDataInfo<BaseSupplierPolicyVo> queryPageList(BaseSupplierPolicyBo bo, PageQuery pageQuery);

    /**
     * 查询端口政策列表
     */
    List<BaseSupplierPolicyVo> queryList(BaseSupplierPolicyBo bo);

    /**
     * 新增端口政策
     */
    Boolean insertByBo(BaseSupplierPolicyBo bo);

    /**
     * 修改端口政策
     */
    Boolean updateByBo(BaseSupplierPolicyBo bo);

    /**
     * 校验并批量删除端口政策信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
